#include "elk_timer.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>//
void call_func(void * data)
{
    if(data!=NULL)
         printf("callback  %s\n", (char*)data);
    else
         printf("callback\n");

}
int main()
{
    elk_timer_create(16000, call_func, "16000_str"); 
    elk_timer_create(5, call_func, "5_str"); 
    elk_timer_create(300, call_func, "300_str"); 
    elk_timer_create(4000, call_func, "4000_str"); 
    while(1)
    {

        elk_timer_schedule();
        usleep(100);
    }
    return 0;
}
